<%-- 
    Document   : ProductDetail
    Created on : Jul 30, 2013, 3:27:37 PM
    Author     : appi
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@page import="java.util.ArrayList"%>
<%@page import="beans.item"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body style="background-color: antiquewhite">
        <%--  <%
            String s;
      item itm=(item)session.getAttribute("detail");
       out.print(itm.getId());
        out.print(itm.getIname());
        %>
        --%>
     
     <table align="center" style="background-color:rgba(50%,30%,20%,0.5);box-shadow:0px 0px 80px white;border-radius: 0% 20% 0% 20%;">

            <th colspan="2"><h2 style="color:brown;text-shadow:10px 10px 3px grey">Product detail!</h2></th>
            <form action="PurchaseActn.do" method="post" >
            <input type="hidden" name="id" value="${sessionScope.detail.id}"/>
            <tr>
            <td>
            <c:out value="${sessionScope.detail.id}"></c:out>
            </td>
            </tr>
            <tr>
            <td>
            <c:out value="${sessionScope.detail.iname}"></c:out> 
            </td>
            </tr>
            <tr>
            <td>
            <c:out value="${sessionScope.detail.iprice}"></c:out>
            </td>
            </tr>
            <tr>
            <td>
            <c:out value="${sessionScope.detail.isdesc}"></c:out>
            </td>
            </tr>
            <tr>
            <td>
            <c:out value="${sessionScope.detail.iddesc}"></c:out>
            </td>
            </tr>
            <tr>
            <td>
            enter the qty:<input type="text" name="qty"/>
            </td>
            </tr>
            <tr>
            <td>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Add to cart" style="font-family: Segoe; color: brown;"/>
            </td>
            </tr>
        </form>
    </table>
            <h3><c:out value="${sessionScope.msg}"></c:out></h3>
                     <c:remove var="msg" scope="session"></c:remove>
 </body>
</html>
